package com.vueblog.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.vueblog.entity.Blog;
import com.vueblog.service.BlogService;
import com.vueblog.mapper.BlogMapper;
import com.vueblog.vo.BlogVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author Administrator
* @description 针对表【t_blog】的数据库操作Service实现
* @createDate 2022-10-25 08:46:47
*/
@Service
public class BlogServiceImpl extends ServiceImpl<BlogMapper, Blog>
    implements BlogService{

    @Resource
    private BlogMapper blogMapper;

    @Override
    public Blog getByBlogId(Long id) {
        return blogMapper.getByBlogId(id);
    }

    @Override
    public List<BlogVo> getBlogList() {
        return blogMapper.getBlogList();
    }
}




